package com.ruoyi.manage.enterprise.service.impl;

import com.ruoyi.common.utils.DateUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.ListUtil;
import com.ruoyi.manage.enterprise.domain.PcProductRefIndustry;
import com.ruoyi.manage.enterprise.mapper.PcProductRefIndustryMapper;
import com.ruoyi.manage.enterprise.service.IPcProductRefIndustryService;
import org.springframework.stereotype.Service;


/**
 * 产品-行业关联Service业务层处理
 *
 * @author ruoyi
 * @date 2025-09-04
 */
@Service
public class PcProductRefIndustryServiceImpl extends ServiceImpl<PcProductRefIndustryMapper, PcProductRefIndustry> implements IPcProductRefIndustryService{


    @Override
    public PcProductRefIndustry queryGetById(Long id){
        PcProductRefIndustry pcProductRefIndustry = this.getById(id);
        return pcProductRefIndustry;
    }

    /**
     * 新增产品-行业关联
     *
     * @param pcProductRefIndustry 产品-行业关联
     * @return 结果
     */
    @Override
    public boolean addPcProductRefIndustry(PcProductRefIndustry pcProductRefIndustry){
        boolean save =this.save(pcProductRefIndustry);
        return save;
    }

    /**
     * 修改产品-行业关联
     *
     * @param pcProductRefIndustry 产品-行业关联
     * @return 结果
     */
    @Override
    public boolean updatePcProductRefIndustry(PcProductRefIndustry pcProductRefIndustry){
        return this.updateById(pcProductRefIndustry);
    }

    /**
     * 批量删除产品-行业关联
     *
     * @param ids 需要删除的产品-行业关联主键
     * @return 结果
     */
    @Override
    public boolean deletePcProductRefIndustryByIds(Long[] ids){
        return this.removeByIds(ListUtil.toList(ids));
    }

}
